import "package:flutter/material.dart";
import "./yanIcon.dart";

// 图标组件
class UseIcon extends StatelessWidget {
  const UseIcon({super.key});
  @override
  Widget build(BuildContext context) {
    return const Column(
      children: [
        SizedBox(height: 20),
        // 系统自带图标
        Icon(
          Icons.access_alarm,
          size: 30,
          color: Color(0xff112233),
        ),
        SizedBox(height: 20),
        Icon(
          Icons.accessibility_new_rounded,
          size: 40,
          color: Colors.blue,
        ),
        // 自定义图标
        SizedBox(height: 20),
        Icon(
          YanIcon.setting,
          size: 24,
          color: Colors.orange,
        ),
        SizedBox(height: 20),
        Icon(
          YanIcon.all,
          size: 24,
          color: Colors.pink,
        ),
        SizedBox(height: 20),
      ],
    );
  }
}
